package com.bitnei.battery.constants;

/**
 * author : czl
 * email : czl_nylg@163.com
 * createTime : 2018-03-02
 * Description: 响应结果枚举类
 */
public enum  ResultCode {

    OK (0,"成功"),

    FAIL(-1,"失败");

    private int code;

    private String msg;

    ResultCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
